package com.xzh.service;

import com.xzh.bean.Department;
import com.xzh.bean.Employee;
import com.xzh.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author XuZhuHong
 * @CreateTime 2021/6/2 10:44
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    public List< Department> getDepts() {
        return departmentMapper.selectByExample(null);
    }


}
